import axios from '@/libs/axios1'
let jsonHeaders = { 'content-type': 'application/json;charset=UTF-8' }
let base = '/testplatform/extraTestTargetLink'

// 查询测试活动关联的靶标系统
export const queryExtraTestTargetLinkList = params => {
  return axios({
    url: `${base}`,
    method: 'GET',
    params,
    headers: jsonHeaders,
  })
}

// 创建测试活动关联的靶标系统
export const addExtraTestTargetLink = data => {
  return axios({
    url: `${base}`,
    method: 'POST',
    data,
    headers: jsonHeaders,
  })
}

// 创建测试活动关联的靶标系统
export const batchAddExtraTestTargetLink = data => {
  return axios({
    url: `${base}/batchAdd`,
    method: 'POST',
    data,
    headers: jsonHeaders,
  })
}

// 修改测试活动关联的靶标系统
export const updateExtraTestTargetLink = data => {
  return axios({
    url: `${base}`,
    method: 'PUT',
    data,
    headers: jsonHeaders,
  })
}

// 删除测试活动关联的靶标系统
export const deleteExtraTestTargetLink = ( data) => {
  return axios({
    url: `${base}`,
    method: 'DELETE',
    data,
    headers: jsonHeaders,
  })
}
